package iedcyt.acute.dataAccess.dao.endnote;


import iedcyt.acute.dataAccess.domain.endnote.Discipline_Pub;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.ResultSetExtractor;



public class Discipline_PubResultSetExtractor implements ResultSetExtractor<Discipline_Pub> {

	@Override
	public Discipline_Pub extractData(ResultSet rs) throws SQLException {

		Discipline_Pub doc = new Discipline_Pub(rs.getInt("idPub"), rs.getInt("idDiscipline"), rs.getString("Year"));
		
		return doc;
	}

}
